package com.aplink.generic.pojo.controlspec.spinner;

public enum SpinnerMode {
    DIALOG(0, "DIALOG"),
    DROPDOWN(1, "DROPDOWN");
    public static SpinnerMode get(final String title) {
        for (final SpinnerMode spinnerMode : SpinnerMode.values()) {
            if (spinnerMode.mTitle.equalsIgnoreCase(title)) {
                return spinnerMode;
            }
        }
        return DROPDOWN;
    }

    private String mTitle;

    private int mValue;

    private SpinnerMode(final int value, final String title) {
        this.mValue = value;
        this.mTitle = title;
    }

    public String getTitle() {
        return this.mTitle;
    }

    public int getValue() {
        return this.mValue;
    }

    public void setTitle(final String title) {
        this.mTitle = title;
    }

    public void setValue(final int value) {
        this.mValue = value;
    }
}
